package com.ruoyi.report.service.impl;

import com.ruoyi.report.domain.ReportOrginalimage;
import com.ruoyi.report.mapper.ReportOrginalimageMapper;
import com.ruoyi.report.service.IReportOrginalimageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 原始记录附件图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-25
 */
@Service
public class ReportOrginalimageServiceImpl implements IReportOrginalimageService
{
    @Autowired(required = false)
    private ReportOrginalimageMapper reportOrginalimageMapper;

    /**
     * 查询原始记录附件图片
     * 
     * @param id 原始记录附件图片ID
     * @return 原始记录附件图片
     */
    @Override
    public ReportOrginalimage selectReportOrginalimageById(String id)
    {
        return reportOrginalimageMapper.selectReportOrginalimageById(id);
    }

    /**
     * 查询原始记录附件图片列表
     * 
     * @param reportOrginalimage 原始记录附件图片
     * @return 原始记录附件图片
     */
    @Override
    public List<ReportOrginalimage> selectReportOrginalimageList(ReportOrginalimage reportOrginalimage)
    {
        return reportOrginalimageMapper.selectReportOrginalimageList(reportOrginalimage);
    }

    /**
     * 新增原始记录附件图片
     * 
     * @param reportOrginalimage 原始记录附件图片
     * @return 结果
     */
    @Override
    public int insertReportOrginalimage(ReportOrginalimage reportOrginalimage)
    {
        return reportOrginalimageMapper.insertReportOrginalimage(reportOrginalimage);
    }

    /**
     * 修改原始记录附件图片
     * 
     * @param reportOrginalimage 原始记录附件图片
     * @return 结果
     */
    @Override
    public int updateReportOrginalimage(ReportOrginalimage reportOrginalimage)
    {
        return reportOrginalimageMapper.updateReportOrginalimage(reportOrginalimage);
    }

    /**
     * 批量删除原始记录附件图片
     * 
     * @param ids 需要删除的原始记录附件图片ID
     * @return 结果
     */
    @Override
    public int deleteReportOrginalimageByIds(String[] ids)
    {
        return reportOrginalimageMapper.deleteReportOrginalimageByIds(ids);
    }

    /**
     * 删除原始记录附件图片信息
     * 
     * @param id 原始记录附件图片ID
     * @return 结果
     */
    @Override
    public int deleteReportOrginalimageById(String id)
    {
        return reportOrginalimageMapper.deleteReportOrginalimageById(id);
    }
}
